import PassengerP.Passenger;

import java.util.LinkedList;

/**
 * Created by Connor Madden.
 * User: Connor Madden
 * Date: 6/10/11
 * Time: 11:25 AM
 */
public class Floor {
    private int num;
    private String name;
    private LinkedList<Passenger> arrivals;
    private LinkedList<Passenger> departures;

    public Floor(int num, String name) {
        this.num = num;
        this.name = name;
        arrivals = new LinkedList<Passenger>();
        departures = new LinkedList<Passenger>();
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean addArrival(Passenger passenger) {
        return arrivals.add(passenger);
    }

    public boolean removeArrival(Passenger passenger) {
        return arrivals.remove(passenger);
    }

    public boolean addDeparture(Passenger passenger) {
        return departures.add(passenger);
    }

    public boolean removeDeparture(Passenger passenger) {
        return departures.remove(passenger);
    }

    public LinkedList<Passenger> getArrivals() {
        return arrivals;
    }

    public LinkedList<Passenger> getDepartures() {
        return departures;
    }
}
